// import {
//   Document,
//   Menu as IconMenu,
//   Location,
//   Setting,
// } from '@element-plus/icons-vue'


import {Location} from "@element-plus/icons-vue";

export const routerData = [
  {
    path: '/login',
    name: 'Login',
    hide: true,
    component: () => import('@/views/login/index.vue')
  }, {
    path: '/',
    redirect: '/home',
    hide: true
  }, {
    path: '/home',
    name: 'Home',
    meta: { title: 'Home', icon: Location },
    component: () => import('@/views/home/index.vue')
  }, {
    path: '/theme',
    name: 'Theme',
    meta: { title: '换肤', icon: Location },
    component: () => import('@/views/theme/index.vue')
  }, {
    path: '/calculate',
    name: 'Calculate',
    meta: { title: '计算', icon: Location },
    children: [
      {
        path: '/calculate/server',
        name: 'Server',
        meta: { title: '云主机', icon: '' },
        // hide: true,
        component: () => import('@/views/calculate/server/index.vue'),
        children: [
          {
            path: '/calculate/server/server-detail',
            name: 'ServerDetail',
            meta: { title: '云主机详情', icon: '' },
            component: () => import('@/components/calculate/server/server-detail/index.vue')
          }
        ]
      },
      // {
      //   path: '/calculate/server/server-detail',
      //   name: 'Server',
      //   meta: { title: '云主机详情', icon: '' },
      //   // hide: true,
      //   children: [
      //     {
      //       path: '/calculate/server/server-detail',
      //       name: 'ServerDetail',
      //       meta: { title: '云主机详情', icon: '' },
      //       component: () => import('@/components/calculate/server/server-detail/index.vue')
      //     }
      //   ]
      // }
    ]
  }, {
    path: '/404',
    hide: true,
    component: () => import('@/views/404/index.vue')
  }, {
    path: '/:catchAll(.*)',
    redirect: '/404',
    hide: true
  }
]
